<template>
	<view>
		<view style="height: 18upx;"></view>
		<view class="card-view">
			<rich-text :nodes="content"></rich-text>
		</view>
		<view style="height: 160upx;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			};
		},
		onLoad(options) {
			this.getConfig(options.key)
		},
		methods: {
			async getConfig(configKey) {
				const res = await uni.$api.getConfig(configKey)
				uni.setNavigationBarTitle({
					title: res.data.title
				})
				this.content = res.data.value
			},
			onDragstart(event) {
				console.log(event)
			}
		}
	}
</script>

<style scoped lang="scss">
	.card-view {
		width: 707rpx;
		margin: 0 auto;
		min-height: calc(100vh - 200upx);
		padding: 25upx 30upx;
		background: #FFFFFF;
		border-radius: 14rpx;
		font-weight: 400;
		font-size: 29rpx;
		color: #2C1101;
	}
</style>